<?php
/**
 * Groups module for XOOPS
 *
 * You may not change or alter any portion of this comment or credits
 * of supporting developers from this source code or any supporting source code 
 * which is considered copyrighted (c) material of the original comment or credit authors.
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 *
 * @copyright       The Groups Project http://code.google.com/p/groupsforxoops/
 * @license         http://www.fsf.org/copyleft/gpl.html GNU public license
 * @package         groups
 * @since           2.3.0
 * @author          Hui Xiao < xh.8326@gmail.com >
 * @version         $Id: form.us.groups.create.php Sat Jul 18 12:47:47 CST 2009
 */

if (false === defined("XOOPS_ROOT_PATH")) {	exit();}

$form = new XoopsForm("", "form", $formUrl, "post",true);



$cat_id = new XoopsFormSelect(_GP_FORM_CATEGORIES,"cat_id",$groups_arr["cat_id"]);
$cat_id->addOption("0",_GP_SEARCH_SELECT_CATEGORY);
$cat_id->addOptionArray($_cat);
$form->addElement($cat_id,true);

$form->addElement( new XoopsFormText(_GP_FORM_GROUP_NAME, "group_name",24,255,$groups_arr["group_name"]),true);
$form->addElement( new XoopsFormTextArea(_GP_FORM_GROUP_DESC, "group_description",$groups_arr["group_description"],8,36),true);
$form->addElement(new XoopsFormHidden("ac","savegroup"));
$form->addElement(new XoopsFormHidden("group_id",$groups_arr["group_id"]));
$form->assign($xoopsTpl);